<template>
  <view class="nav-bar flex justify-between align-center">
    <view class="nav-bar-left" @tap="onClickLeft">
      <uni-icons color="#333333" type="back" size="24" />
    </view>
    <view class="nav-bar-right" @tap="onClickRight"><slot name="right" /></view>
  </view>
</template>

<script>
import uniIcons from '../uni-icons/uni-icons.vue'
export default {
  comments: { uniIcons },
  methods: {
    onClickLeft() {
      uni.navigateBack({
        delta: 1,
      })
    },
    onClickRight() {},
  },
}
</script>

<style lang="scss" scoped>
.nav-bar {
  width: 750upx;
  height: 88upx;
  background-color: #ffffff;
  border-bottom: 1px solid #edeff6;
  padding: 0 28upx;
}
</style>
